package ltd.hxya.novel.book.client;


import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Component;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;

@FeignClient(name = "novel-user")
@Component
public interface UserClient {

    @PostMapping("/user/userShelf")
    public void saveUserBookShelf(@RequestParam(value = "bookId") String bookId,@RequestParam(value = "contentId") String contentId, @RequestParam(value = "token")String token);

    @PostMapping("/user/getProContentId")
    public String getProContentId(@RequestParam(value = "bookId") String bookId,@RequestParam(value = "token")String token);

    @PostMapping("/user/getUserId")
    public String getUserIds(@RequestParam(value = "token") String token);
}
